package org.example.handwriting.spring.a;

import org.example.handwriting.spring.Annotation.Autowired;
import org.example.handwriting.spring.Annotation.Component;
import org.example.handwriting.spring.Annotation.PostConstruct;

@Component
public class Cat {

    @Autowired
    private Dog dog;

    @PostConstruct
    public void init() {
        System.out.println("Cat创建了 cat里面有一个属性:" + dog);
    }
}
